package com.sm.utils;

import cn.dev33.satoken.stp.StpUtil;
import org.springframework.stereotype.Component;

/**
 * @author Cola
 * @description
 * @date 2022/2/4
 */
@Component
public class SaTokenUtils {
    static public Integer getUserId(){
        return Integer.parseInt((String) StpUtil.getLoginId());
    }
}
